#pragma once

#include "../../instrument.h"
#include "wx/string.h"

#include "Resegup_Dialog.h"
class Resegup_Dialog;

class ResegUP :	public Instrument
{
	public:
		ResegUP(void);
		~ResegUP(void);
		void *Entry(void);
		void StartDevice(wxString FileName,wxString FilePath,bool File);
		void StopDevice(void);
		int OpenPort(const char *OpenVal1, const char *OpenVal2, const char *OpenVal3);

		int GetUltimoTempo(SQLBIGINT *tempo);
		int GetPutECGeACCfromDB(SampleStruct *Signal, SQLBIGINT *LastTime, SQLBIGINT Time); 
		int ReadID(int *ID_List);

		wxDb            *db;
		Resegup_Dialog *ResDialog;

		//Dichiarazione variabili per campi	
		SQLINTEGER ID_Runner,ID_Runner_Old;
		SQLBIGINT Timestamp;
		SQLINTEGER ECG;
		SQLINTEGER AccX;
		SQLINTEGER AccY;
		SQLINTEGER AccZ;

	
		
		
};

